<?php

//require_once 're/Type/Test_Types/Integer.php';

class re_Test_Odd_Integer extends re_Test_Integer
{

	protected function _constraint(re_Type_Abstract $value){
		return $value->_getValue() % 2 >= 1;
	}
	
	static public function value($possRepArgsList = array(), $possRepName = self::DEFAULT_SELECTOR_NAME, array $options = array()){
		return parent::_value($possRepArgsList, $possRepName, $options, __CLASS__);
	}
	
	static public function variable($initialValue = FALSE, array $options = array()){
		return parent::_variable($initialValue, $options, __CLASS__);
	}
}
